#pragma once

#ifndef QCEFHIDEEXTWIDGET_H
#define QCEFHIDEEXTWIDGET_H

#include <QtCore>
#include <QtGui>
#include <QtWidgets>

#include "QCefExtWidget.h"

//////////////////////////////////////////////////////////////////////////
//
class QCefHideExtWidget : public QCefExtWidget
{
    Q_OBJECT
public:
    QCefHideExtWidget(bool bHide = true, QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags(Qt::Tool));
    QCefHideExtWidget(const QString & strUrl, bool bHide = true, QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags(Qt::Tool));
    virtual ~QCefHideExtWidget();

public:
    void hideWidget();
    void showWidget();

protected:
    int initHide();

protected:
    virtual void firstPolishEvent(QEvent * event) override;
};

#endif // QCEFHIDEEXTWIDGET_H
